import request from '@/utils/request'

export function storeList(query) {
  return request({
    url: '/store/list',
    method: 'get',
    params: query
  })
}
export function storeadd(data) {
  return request({
    url: '/store/add',
    method: 'post',
    data: data
  })
}
export function delLsit(data) {
  return request({
    url: '/good/delList',
    method: 'post',
    data: data
  })
}
export function categoryList() {
  return request({
    url: '/category/list',
    method: 'get',
  })
}
export function categoryadd(data) {
  return request({
    url: '/category/add',
    method: 'post',
    data: data
  })
}
export function categoryDelList(data) {
  return request({
    url: '/category/delList',
    method: 'post',
    data: data
  })
}

export function approveAdd(data) {
  return request({
    url: '/approve/out',
    method: 'post',
    data: data
  })
}

export function approveList(data) {
  return request({
    url: '/approve/list',
    method: 'post',
    data: data
  })
}

export function agree(data) {
  return request({
    url: '/approve/agree',
    method: 'post',
    data: data
  })
}

export function refuse(data) {
  return request({
    url: '/approve/refuse',
    method: 'post',
    data: data
  })
}
export function gettotal(data) {
  return request({
    url: '/store/getTotal',
    method: 'get'
  })
}
